package unimelb.filesync.common.protocol;

import java.util.List;

public class CompositePhase implements IFileSyncPhase {
    private List<IFileSyncPhase> commandChain;

    public CompositePhase(List<IFileSyncPhase> commandChain) {
        super();
        this.commandChain = commandChain;
    }

    @Override
    public void execute() {
        for (IFileSyncPhase command : commandChain) {
            command.execute();
        }
    }

}
